function httpReq(url, func, method)
{
	netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

	if(!method)
	{
		method = 'GET';
	}
	try
	{
		var request = new XMLHttpRequest();
		
		request.onreadystatechange = function()
		{
			if(request.readyState == 4)
			{
				if(request.status == 200)
				{
					func(request, true);
				}
				else
				{
					func(request, false);
				}
			}
		}
		request.open( method, url, true );

		request.send(null);

		return request;
	}
	catch( e )
	{
		func(null, false);
		
		return null;
	}
}
function getNodeValue(node)
{
	var res = '';
	
	for(var i = 0; i < node.childNodes.length; i++)
	{
		res += node.childNodes[i].nodeValue;
	}
	return res;
}